package api;

import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/3/27 8:26
 */
public class Tj {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int dx=0,xx=0,num=0;
        String str = in.nextLine();
        for (int i=0;i<str.length();i++){
            if (str.charAt(i)>='A'&str.charAt(i)<='Z'){
                dx++;
            }
            if (str.charAt(i)>='a'&str.charAt(i)<='z'){
                xx++;
            }
            if (str.charAt(i)>='1'&str.charAt(i)<='9'){
                num++;
            }
        }
        System.out.println("大写字母数量"+dx);
        System.out.println("小写字母数量"+xx);
        System.out.println("数字数量"+num);
    }
}
